home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / ASTRONOM / 2935A.ZIP / INSTALL.BAT < prev   
DOS Batch File  |  1991-08-23  |  5KB  |  174 lines

  1. echo off
  2. if not .%1.==.. goto e
  3. goto c
  4. :e
  5. if .%3.==.qqq. goto f
  6. if .%3.==.QQQ. goto f
  7. if .%1.==.zzz. goto d
  8. if .%1.==.ZZZ. goto d
  9. if not .%2.==.. goto a
  10. goto b
  11. :c
  12. cls
  13. echo                       WELCOME TO DEEP SPACE 3-D, VERSION 3.0
  14. echo 
  15. echo  Deep Space 3-D is distributed as two self-extracting archive files called
  16. echo 
  17. echo                            DS3D1.EXE   and   DS3D2.EXE
  18. echo 
  19. echo  INSTALL.BAT is included in the DS3D1.EXE archive, but it may also have been 
  20. echo  included as a separate file.   
  21. echo 
  22. echo  Since DEEP SPACE 3-D is shareware, you may have received it in various forms. 
  23. echo  If you got the program from a primary source (directly from David Chandler Co.
  24. echo  or from a Shareware Distributor) it came on two 360K disks or one higher
  25. echo  density disk, with INSTALL.BAT included externally.  If you got it from a BBS
  26. echo  you probably received only the two archive files.  If you received it from a
  27. echo  friend, you may have received it either way, or as a collection of loose files.
  28. echo 
  29. echo  If you did not receive the program in archive form neither you nor we know 
  30. echo  what you have nor what condition it is in.  Send $15 to David Chandler Co.,
  31. echo  P.O. Box 309, La Verne, CA 91750 for a clean copy of the unregistered program,
  32. echo  or send $79 for a registered program, or write for a brochure.  The $15 is
  33. echo  applicable toward the registration price.
  34. echo 
  35. pause
  36. cls
  37. echo 
  38. echo                                  EXPLANATION
  39. echo 
  40. echo  Starting with Version 3.0, DEEP SPACE 3-D requires a hard drive.  Installation
  41. echo  requires approximately 2.5 Megabytes of disk space.  (Some of that space is
  42. echo  left free at the end of installation.)
  43. echo 
  44. echo  DEEP SPACE 3-D can be run with all files in a single directory, but this is
  45. echo  not recommended.  As files are added by the user or created by the program
  46. echo  the directory can become quite cluttered.  It is better to organize the files
  47. echo  into sub-directories.
  48. echo 
  49. echo  INSTALL.BAT will create the sub-directories you need and copy the files to the
  50. echo  correct directories.
  51. echo 
  52. pause
  53. cls
  54. echo 
  55. echo                                 INSTRUCTIONS
  56. echo  ------------------------------------------------------------------------------
  57. echo  CASE 1:  If you are installing from floppy drive A: and you want to create a
  58. echo  base directory called DS3D on hard drive C:,
  59. echo 
  60. echo      Type:         A:                 (Followed by a carriage return)
  61. echo      then type:    INSTALL C: DS3D    (Followed by a carriage return)
  62. echo 
  63. echo  (Follow the same pattern if you use a different floppy drive, a different hard
  64. echo  drive, and/or a different base directory name.)
  65. echo 
  66. echo  ------------------------------------------------------------------------------
  67. echo  CASE 2:  If you got DS3D1.EXE, and DS3D2.EXE from a BBS, copy both files to
  68. echo  the directory you want to use as the base directory.  Move to that directory.
  69. echo  Expand the archive files by typing their file names (without the .EXE), then:
  70. echo 
  71. echo      Type:         INSTALL zzz        (Followed by a carriage return)
  72. echo 
  73. echo  (This will create the appropriate sub-directories and move the files.)
  74. echo  ------------------------------------------------------------------------------
  75. echo  (Be sure you type a colon after the drive letter and include spaces as shown)
  76. goto exit
  77. :a
  78. cls
  79. md %1\%2
  80. md %1\%2\dsfiles
  81. md %1\%2\dsdata
  82. md %1\%2\share
  83. copy install.bat %1\%2\share
  84. copy ds3d1.exe %1\%2
  85. %1\%2\share\install %1 %2 qqq
  86. :f
  87. cls
  88. echo 
  89. echo 
  90. echo 
  91. echo 
  92. echo   If DS3D2.EXE is on a separate disk, insert the other disk now.  Otherwise...
  93. echo 
  94. echo 
  95. pause
  96. copy ds3d2.exe %1\%2
  97. %1
  98. cd \%2
  99. rem extract: local directories already made
  100. ds3d1
  101. echo 
  102. ds3d2
  103. goto g
  104. :b
  105. rem extract and make local directories
  106. cls
  107. ds3d1
  108. echo 
  109. ds3d2
  110. :d
  111. cls
  112. rem make local directories without extracting
  113. md dsfiles
  114. md dsdata
  115. md share
  116. copy install.bat share
  117. :g
  118. copy *.cfl dsfiles
  119. del *.cfl
  120. copy category.dat dsfiles
  121. del category.dat
  122. copy SST* dsdata
  123. del SST*
  124. copy sac*.* dsdata
  125. del sac*.*
  126. copy ngcobjct.dat dsdata
  127. del ngcobjct.dat
  128. del lh*.*
  129. copy ds3d1.exe share
  130. if not errorlevel 1 goto j1
  131. goto k1
  132. :j1
  133. del ds3d1.exe
  134. :k1
  135. copy ds3d2.exe share
  136. if not errorlevel 1 goto j2
  137. goto k2
  138. :j2
  139. del ds3d2.exe
  140. :k2
  141. cls
  142. echo 
  143. echo 
  144. echo 
  145. echo 
  146. echo 
  147. echo 
  148. echo                              Installation is now complete
  149. echo 
  150. if .%2.==.. goto h
  151. echo           The main program files are on: %1\%2
  152. echo          Star and NGC data files are on: %1\%2\dsdata
  153. echo    Files modified by the program are on: %1\%2\dsfiles
  154. echo  Files to share with other users are on: %1\%2\share
  155. echo 
  156. goto k
  157. :h
  158. echo           The main program files are on: [current directory]
  159. echo          Star and NGC data files are on: [current directory]\dsdata
  160. echo    Files modified by the program are on: [current directory]\dsfiles
  161. echo  Files to share with other users are on: [current directory]\share
  162. echo 
  163. :k
  164. echo  To save space you may want to copy the SHARE subdirectory to floppy disks and
  165. echo  remove it from the hard drive.  Please share the program in archive form only.
  166. echo 
  167. echo                             Type DS3D to start the program.
  168. echo 
  169. echo 
  170. echo 
  171. :exit
  172.  
  173. 
  174.